package com.matt.foundation.vo;

import com.matt.foundation.DO.TeacherDO;
import com.matt.commons.dto.sso.StaffDTO;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/9
 * *******************************
 */
@Data
public class TeacherVo {

    private String id;

    private String realName;

    private String imgUrl;

    public static TeacherVo of(TeacherDO DO){
        TeacherVo vo = new TeacherVo();
        vo.setId(DO.getId());
        vo.setRealName(DO.getName());
        vo.setImgUrl(DO.getImgUrl());
        return vo;
    }
}